<?php 
include '../../functions.php';
$info = glob('./download/*');

 ?>
 <!doctype html>
 <html lang="en">
 <head>
 	<meta charset="UTF-8" />
 	<title>Document</title>
 </head>
 <body>
 	<table border="1" cellspacing="" cellpadding="">
 		<?php foreach ($info as $v):?>
 			<tr>
 				<td><?php echo basename($v) ?></td>
 				<td>
 					<a href="./download.php?id=<?php echo $v; ?>">下载</a>
 				</td>
 			</tr>
 		<?php endforeach ?>
 	</table>
 </body>
 </html>